package com.scm.biz.service._impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.scm.biz.bean.Resource;
import com.scm.biz.dao.ResourceDao;
import com.scm.biz.dao.SysRoleResourceDao;
import com.scm.biz.service.ResourceService;

@Service
public class ResourceServiceImpl implements ResourceService{
	@Autowired
	ResourceDao resourceDao;
	@Autowired
	SysRoleResourceDao sysRoleResourceDao;
	@Override
	public List<Resource> selectListByUserId(int userId) {
		return resourceDao.selectListByUserId(userId);
	}

	@Override
	public List<Resource> selectListByRoleId(int roleId) {
		// TODO Auto-generated method stub
		return resourceDao.selectListByRoleId(roleId);
	}
	@Override
	public List<Resource> selectList() {
		// TODO Auto-generated method stub
		return resourceDao.selectList();
	}
}
